package com.example.management.system.dao

import com.example.management.system.domain.DeptDO
import org.apache.ibatis.annotations.Mapper

/**
 * 部门管理
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-10-03 15:35:39
 */
@Mapper
interface DeptDao {

    operator fun get(deptId: Long?): DeptDO

    fun list(map: Map<String, Any>): List<DeptDO>

    fun count(map: Map<String, Any>): Int

    fun save(dept: DeptDO): Int

    fun update(dept: DeptDO): Int

    fun remove(deptId: Long?): Int

    fun batchRemove(deptIds: Array<Long>): Int

    fun listParentDept(): Array<Long>

    fun getDeptUserNumber(deptId: Long?): Int
}
